//
//  HomeNC.m
//  fastwatch
//
//  Created by lanou3g on 15/10/31.
//  Copyright © 2015年 songhaowen. All rights reserved.
//

#import "HomeNC.h"
#import "mainVC.h"
#import "SearchController.h"

@interface HomeNC ()

@end

@implementation HomeNC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationBar.backgroundColor = [UIColor blueColor];
    
    [self setUptitle];//导航栏
 
}


//导航栏
-(void)setUptitle{
    
    UIButton *titleBtn= [[UIButton alloc] initWithFrame:CGRectMake(10, 25, 375, 40)];
    //titleBtn.backgroundColor = [UIColor greenColor];
    [titleBtn setTitle:@"👻这里设计搜索栏" forState:UIControlStateNormal];
    titleBtn.showsTouchWhenHighlighted = YES;
    [titleBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    titleBtn.titleLabel.font = [UIFont systemFontOfSize:18];
    titleBtn.titleLabel.numberOfLines = 0;
    [self.view addSubview:titleBtn];
    
    [titleBtn addTarget:self action:@selector(toSearchController) forControlEvents:UIControlEventTouchUpInside];//点击跳到搜索界面

}
//点击跳到搜索界面
-(void)toSearchController{
    SearchController *SearchTabVC = [[SearchController alloc] init];
    [self presentViewController:SearchTabVC animated:YES completion:nil];
}


@end
